at the whim of (someone)

Translations
по прихоти (кого-то)
The project was changed at the whim of the manager.
Проект был изменен по прихоти менеджера.
Definitions
Under the influence or control of someone else's unpredictable desires or decisions.
Words
whim

noun
каприз